import Vue from 'vue'
import Router from 'vue-router'
import login from './views/Login.vue'
import register from './views/Register.vue'
import e_register from './views/E_register.vue'
import index from './views/index/Index.vue'
import asset from './views/index/Asset.vue'
import otc from './views/index/Otc.vue'
import mine from './views/index/My.vue'
import trade from './views/index/Trade.vue'
import entrust from './views/trade/Entrust.vue'
import serve from './views/member/Serve.vue'
import record from './views/trade/Record.vue'
import extension from './views/trade/Extension.vue'
import otc_order from './views/trade/Otc_order.vue'
import otcdetails from './views/trade/otcDetails.vue'
import otcappeal from './views/trade/otc_appeal.vue'
import leave from './views/trade/leave.vue'
import brmoney from './views/trade/brmoney.vue'
import newlist from './views/member/Newlist.vue'
import forgetcode from './views/member/forgetcode.vue'
import news from './views/member/News.vue'
import safety from './views/safe/Safety.vue'
import t_mobile from './views/safe/t_mobile.vue'
import t_password from './views/safe/t_password.vue'
import t_trade from './views/safe/t_trade.vue'
import c1 from './views/member/c1.vue'
import c2 from './views/member/c2.vue'
import gsale from './views/trade/Gsale.vue'
import add_bank from './views/member/add_bank.vue'
import add_zfb from './views/member/add_zfb.vue'
import add_wx from './views/member/add_wx.vue'
import help from './views/member/help.vue'
import message from './views/member/message.vue'
import gbuy from './views/trade/Gbuy.vue'
import addsite from './views/trade/addsite.vue'
import currency from './views/trade/currency.vue'
import addmoney from './views/trade/addmoney.vue'
import upmoney from './views/trade/upmoney.vue'
import upmoneylist from './views/trade/upmoneylist.vue'
import pay_list from './views/member/Pay_list.vue'
import add_pay from './views/member/Add_pay.vue'
import invite from './views/member/Invite.vue'
import messagelist from './views/member/messagelist.vue'
import transfer from './views/member/transfer.vue'
import business_s from './views/index/Business_s.vue'
import business_q from './views/index/Business_q.vue'

import advertising from './views/index/advertising.vue'
import wrecord from './views/member/wrecord.vue'

import index_kline from './views/index/Index_kline.vue'

Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'login',
            component: login,
            meta: {
                title: '不须要登陆',
                type: 'nologin'  // 不需要登录
            }
        },
        {
            path: '/index',
            name: 'index',
            component: index,
            meta: {
                title: '不须要登陆',
                type: 'nologin'  // 不需要登录
            }
        },
        {
            path: '/asset',
            name: 'asset',
            component: asset
        },
        {
            path: '/e_register',
            name: 'e_register',
            component: e_register
        },
        {
            path: '/otc',
            name: 'otc',
            component: otc,
            meta: {
                title: '不须要登陆',
                type: 'nologin'  // 不需要登录
            }
        },
        {
            path: '/mine',
            name: 'mine',
            component: mine
        },
        {
            path: '/trade',
            name: 'trade',
            component: trade,
            meta: {
                title: '不须要登陆',
                type: 'nologin'  // 不需要登录
            }
        },
        {
            path: '/entrust',
            name: 'entrust',
            component: entrust
        },
        {
            path: '/register',
            name: 'register',
            component: register,
            meta: {
                title: '不须要登陆',
                type: 'nologin'  // 不需要登录
            }
        },
        {
            path: '/invite',
            name: 'invite',
            component: invite
        },
        {
            path: '/add_pay',
            name: 'add_pay',
            component: add_pay
        },
        {
            path: '/serve',
            name: 'serve',
            component: serve
        },
        {
            path: '/record',
            name: 'record',
            component: record
        },
        {
            path: '/extension',
            name: 'extension',
            component: extension
        },
        {
            path: '/otc_order',
            name: 'otc_order',
            component: otc_order
        },
        {
            path: '/newlist',
            name: 'newlist',
            component: newlist,
            meta: {
                title: '不须要登陆',
                type: 'nologin'  // 不需要登录
            }
        },
        {
            path: '/news',
            name: 'news',
            component: news
        },
        {
            path: '/safety',
            name: 'safety',
            component: safety
        },
        {
            path: '/t_mobile',
            name: 't_mobile',
            component: t_mobile
        },
        {
            path: '/pay_list',
            name: 'pay_list',
            component: pay_list
        },
        {
            path: '/t_password',
            name: 't_password',
            component: t_password
        },
        {
            path: '/t_trade',
            name: 't_trade',
            component: t_trade
        },
        {
            path: '/c1',
            name: 'c1',
            component: c1
        },
        {
            path: '/gsale',
            name: 'gsale',
            component: gsale
        },
        {
            path: '/add_bank',
            name: 'add_bank',
            component: add_bank
        },
        {
            path: '/add_zfb',
            name: 'add_zfb',
            component: add_zfb
        },
        {
            path: '/add_wx',
            name: 'add_wx',
            component: add_wx
        },
        {
            path: '/c2',
            name: 'c2',
            component: c2
        },
        {
            path: '/help',
            name: 'help',
            component: help,
            meta: {
                title: '不须要登陆',
                type: 'nologin'  // 不需要登录
            }
        },
        {
            path: '/message',
            name: 'message',
            component: message
        },
        {
            path: '/gbuy',
            name: 'gbuy',
            component: gbuy
        },
        {
            path: '/business_s',
            name: 'business_s',
            component: business_s
        },
        {
            path: '/business_q',
            name: 'business_q',
            component: business_q
        },
        {
            path: '/transfer',
            name: 'transfer',
            component: transfer
        },
        {
            path: '/wrecord',
            name: 'wrecord',
            component: wrecord
        },
        {
            path: '/otcdetails',
            name: 'otcdetails',
            component: otcdetails
        },
        {
            path: '/otcappeal',
            name: 'otcappeal',
            component: otcappeal
        },
        {
            path: '/advertising',
            name: 'advertising',
            component: advertising
        },
        {
            path: '/index_kline',
            name: 'index_kline',
            component: index_kline,
            meta: {
                title: '不须要登陆',
                type: 'nologin'  // 不需要登录
            }
        },
        {
            path: '/brmoney',
            name: '提币1',
            component: brmoney
        },
        {
            path: '/addsite',
            name: '添加提币地址',
            component: addsite
        },
        {
            path: '/currency',
            name: '币种选择',
            component: currency
        },
        {
            path: '/addmoney',
            name: '提币',
            component: addmoney
        },
        {
            path: '/forgetcode',
            name: '修改密码获取验证码',
            component: forgetcode,
            meta: {
                title: '不须要登陆',
                type: 'nologin'  // 不需要登录
            }
        },
        {
            path: '/messagelist',
            name: '消息列表',
            component: messagelist
        },
        {
            path: '/leave',
            name: '留言',
            component: leave
        },
        {
            path: '/upmoney',
            name: '提币',
            component: upmoney
        },
        {
            path: '/upmoneylist',
            name: '提币详情',
            component: upmoneylist
        },

    ]
})